package com.study.dao;

import com.study.constant.BrandCategory;
import com.study.constant.GoodsGategory;
import com.study.entity.EcommerceGoods;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;

public interface EcommerceGoodsDao extends PagingAndSortingRepository<EcommerceGoods,Long>{

    Optional<EcommerceGoods> findFirst1ByGoodsCategoryAndBrandCategoryAndGoodsName(
            Integer goodsCategory,Integer brandCategory,String goodsName
    );

}
